package com.itany.corejava.code07_面向对象;

/**
 * @author: 石小俊
 * @date: 2023年03月07日 13:56
 * @version: 1.0
 */
public class Employee {
    private int id;
    String name;
    protected double salary;
    public String gender;

    public Employee(int id, String name, double salary, String gender) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.gender = gender;
    }

    public static void main(String[] args) {
        Employee emp = new Employee(1,"admin",6000.0,"男");
        emp.id = 2;
        emp.name = "alice";
        emp.salary = 5000.0;
        emp.gender = "女";
    }
}
